<?php
if(count($agents) > 0) {
?>
<table cellpadding="0" cellspacing="0" border="0" class="standard-table" summary="Object Table">
    <caption><?php echo $this->translate('Remote agent\'s list');?></caption>
    <thead>
    <tr>
        <th class="checkbox-cell"><input type="checkbox" name="check_all" value="1" id="check-all-table-two" /></th>
        <th><?php echo $this->translate('Name');?></th>
        <th><?php echo $this->translate('Description');?></th>
        <th class="center-cell"><?php echo $this->translate('Online since');?></th>
        <th class="center-cell">Objects</th>
        <th class="center-cell">Format</th>
        <th class="center-cell">Actions</th>
    </tr>
    </thead>
    <tbody>
<?php
foreach($agents as $agent) {
?>
    <tr id="agent-tr-<?php echo $agent->getUserame()?>">   <!--<tr class="even"> -->
        <td class="checkbox-cell"><input type="checkbox" name="agent-checkbox-<?php echo $agent->getUserame()?>" value="1" class="object-checkbox" /></td>
        <td><a href="" title=""><?php echo $agent->getAgentName() ?></a></td>
        <td><?php echo $agent->getAgentDesc() ?></td>
        <td class="center-cell">18.08.2010</td>
        <td class="block-cell block-cell-grey">102</td>
        <td class="block-cell block-cell-colour">.MPEG</td>
        <td class="action-cell center-cell">
            <a href="" title=""><img src="images/icons/page_white_magnify.png" alt="" title="" width="16" height="16" /></a>
            <a href="" title=""><img src="images/icons/page_white_edit.png" alt="" title="" width="16" height="16" /></a>
            <a href="" title=""><img src="images/icons/cross.png" alt="" title="" width="16" height="16" /></a>
        </td>
    </tr>
<?php
}
?>
<!--
    <tr class="even">
        <td class="checkbox-cell"><input type="checkbox" name="object_6" value="1" class="object-checkbox" /></td>
        <td><a href="" title="">Chicken Glasses</a></td>
        <td>Get these poultry specs to make your chicken funky</td>
        <td class="center-cell">18.08.2010</td>
        <td class="block-cell block-cell-grey">159</td>
        <td class="block-cell block-cell-colour">.WMV</td>
        <td class="action-cell center-cell">
            <a href="" title=""><img src="images/icons/page_white_magnify.png" alt="" title="" width="16" height="16" /></a>
            <a href="" title=""><img src="images/icons/page_white_edit.png" alt="" title="" width="16" height="16" /></a>
            <a href="" title=""><img src="images/icons/cross.png" alt="" title="" width="16" height="16" /></a>
        </td>
    </tr>
    <tr>
        <td class="checkbox-cell"><input type="checkbox" name="object_7" value="1" class="object-checkbox" /></td>
        <td><a href="" title="">Space Rocket</a></td>
        <td>Spaceman. I've always wanted you to go into space, man</td>
        <td class="center-cell">18.08.2010</td>
        <td class="block-cell block-cell-grey">7</td>
        <td class="block-cell block-cell-colour">.MPG</td>
        <td class="action-cell center-cell">
            <a href="" title=""><img src="images/icons/page_white_magnify.png" alt="" title="" width="16" height="16" /></a>
            <a href="" title=""><img src="images/icons/page_white_edit.png" alt="" title="" width="16" height="16" /></a>
            <a href="" title=""><img src="images/icons/cross.png" alt="" title="" width="16" height="16" /></a>
        </td>
    </tr>
    -->
    </tbody>
</table>

<!-- Check All JS -->
<script type="text/javascript">
    $('#check-all-table-two').click(function() {
        var check_all = $(this);
        if(this.checked)
        {  check_all.parents('table').find('.object-checkbox').attr('checked', 'checked');
        }
        else
        {  check_all.parents('table').find('.object-checkbox').removeAttr('checked');
        }
    });
</script>
<!-- /Check All JS -->

<?php
} else {
?>

add agent image

<?php
}
?>
